a

b

f(x) = cos(x)
c_1 = 0
c_2 = 0
c_3 = 0
h(x) = sin(x)
c_4 = 0
g = IntegralBetween(f, h, 0.7854, 3.9269908169872414)
A = Intersect(h, f, (0.7853981634011316, 0.7071067811891519))
B = Intersect(f, h, (3.9269908169834564, -0.707106781189224))
c = OrthogonalLine(A, xAxis)
d = OrthogonalLine(B, xAxis)
C = Intersect(c, xAxis)
D = Intersect(xAxis, d)